package ch07;

/**
 * Created by Think on 2016/4/16.
 */

import java.util.Date;

import static java.lang.System.currentTimeMillis;
import static java.lang.System.out;

public class DateDemo {
    public static void main(String[] args) {
        Date date1 = new Date(currentTimeMillis());
        Date date2 = new Date();
        out.println(date1.getTime());
        out.println(date2.getTime());
    }
}
